<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="tag"%>

<s:set var="user_info" value="%{#session.USER_INFO}" />
<s:if test="%{#user_info == null}"><jsp:forward page="login.jsp"></jsp:forward></s:if>

<html>
<head>
<title>Manage Calendar</title>
<link href="css/bootstrap.css" rel="stylesheet" media="screen">
<link href="css/bootstrap-theme.css" rel="stylesheet" media="screen">
<link href="css/ace.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="css/font-awesome.min.css" />
<link href="css/trung-style.css" rel="stylesheet" media="screen">
<link rel='stylesheet' href='css/cupertino/jquery-ui.min.css' />

<script src="js/jquery.min.js"></script>
<script src="js/jquery-1.9.0.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/ace.min.js"></script>
<script src='js/moment.min.js'></script>
<script src='js/jquery-ui.custom.min.js'></script>

</head>
<body>
	<s:set var="errorType" value="%{#request.ERROR_TYPE}"></s:set>
	<div class="index">
		<!--header -->
		<tag:HeaderTag username="${user_info.fullname}">
			<div class="breadcrumbs" id="breadcrumbs" style="margin-bottom: 10px">
				<ul class="breadcrumb" style="margin: 8px;">
					<li><i class="icon-home home-icon"></i><a href="./">Trang
							chủ</a></li>
					
					<s:if test="%{#errorType == 'syncError'}">
						<li class="active">Đồng bộ dữ liệu</li>
					</s:if>					
					<s:elseif test="%{#errorType == 'getPermissionError'}">
						<li class="active">Xác nhận email</li>
					</s:elseif>
				</ul>
				<!-- .breadcrumb -->
			</div>
		</tag:HeaderTag>
		<!--end header -->

		<!-- main body -->
		<tag:SideBarTag active_area="0"></tag:SideBarTag>

		<div class="main-content">		
			<div class="page-header">				
				<s:if test="%{#errorType == 'syncError'}">
					<h1>Đồng bộ dữ liệu</h1>	
				</s:if>					
				<s:elseif test="%{#errorType == 'getPermissionError'}">
					<h1>Xác nhận email</h1>	
				</s:elseif>					
			</div>
			<s:if test="%{#errorType == 'syncError'}">
				<img src="img/syncError.jpg" alt="Xảy ra lỗi khi đồng bộ!"class="errorMessageImage">
			</s:if>	
			<s:elseif test="%{#errorType == 'getPermissionError'}">
				<img src="img/permissionError.jpg" alt="Xảy ra lỗi khi xác nhận email!"class="errorMessageImage">
			</s:elseif>
		</div>
		<!-- end body -->
	</div>

</body>

</html>